<div class="content_ct_show_ct">
	<table class="content_ct_show_ct_tbl" width="100%">
            <tr class="content_ct_show_ct_tbl_top">
                    <td width="3%"><input type="checkbox" class="input_checkall" /></td>
                    <td width="3%">
                    <a class="link_change" href="<?php echo base_url() ?>back_end/category_product_1/sort/id/<?php echo $sort; ?>">ID</a>
                    </td>
                    <td width=35%">
                    <a class="link_change" title="Click để sắp xếp" href="<?php echo base_url() ?>back_end/category_product_1/sort/name/<?php echo $sort; ?>">
               		Tên danh mục sản phẩm
               		</a>
               	    </td>
               		<td width="35%">
                    	<a class="link_change">
	                		Từ khóa mô tả
	                	</a>
                    </td>
                    <td width="8%">
						<a class="link_change" href="<?php echo base_url() ?>back_end/category_product_1/sort/order/<?php echo $sort; ?>">
							Order
						</a>
						<a style="cursor: pointer;" href="javascript: submitform()">
							<img class="save_img" title="Nhấn click để thay đổi thứ tự sắp xếp" src="<?php echo base_url(); ?>images/back_end/save.png" />
						</a>	
                    </td>
                    <td width="9%">
                    <a class="link_change" title="Click để sắp xếp" href="#">Tác vụ</a>
                    </td>
            </tr>
                
                <?php
                $count = 1; 
                foreach ($admin_category_product_1 as $value) {
                $count += 1;	 
                ?> 
                <tr class="<?php if ($count%2) { echo 'content_ct_show_ct_tbl_bt_1'; } else { echo 'content_ct_show_ct_tbl_bt_2'; }  ?>">
                    <td class="tdPr7"><input class="input_checkbox" type="checkbox"  value="<?php echo $value['id']; ?>" name="value_id[]"/></td>
                    <td class="tdPr7">
                    <?php echo $value['id']; ?>
                    </td>
                    <td class="tdPr7" style="text-align: left;">
                    <span><?php echo $value['name']; ?></span>
                    </td>
                    <td class="tdPr7" style="text-align: left;">
                   	 <span><?php echo $value['keyword']; ?></span>
                    </td>
                    <td class="tdPr7">
                    <input class="order_admin_menu" value="<?php echo $value['order']; ?>" name="order_category_product_1[<?php echo $value['id']; ?>]" type="text" />
                    </td>
                    <td class="tdPr7">
                    <?php if($value['status'] == 1) { ?>
                    <a class="tag_action" href="<?php echo base_url()?>back_end/category_product_1/active_kh/<? echo $value['id']; ?>"><img src="<?php echo base_url()?>images/back_end/icon/check2.png" title="Trạng thái" alt="icon check" /></a>
                    <?php } else { ?>
                 	<a class="tag_action" href="<?php echo base_url()?>back_end/category_product_1/active_kh/<?php echo $value['id'];  ?>"><img src="<?php echo base_url()?>images/back_end/icon/check.png" title="Trạng thái" alt="icon check" /></a>
                    <?php }?>
                    <a class="tag_action" href="<?php echo base_url()?>/back_end/category_product_1/edit/<?php echo $value['id']; ?>"><img src="<?php echo base_url()?>images/back_end/icon/edit-icon.gif" alt="Sửa" title="Sửa" /></a>
                    <a class="tag_action" href="<?php echo base_url()?>back_end/category_product_1/delete/<?php echo $value['id']; ?>"><img src="<?php echo base_url()?>images/back_end/icon/delete_png.png" title="Xóa"  alt="icon" /></a>
                    </td>
                </tr>
                <?php } ?>
     </table>
</div>

<div class="content_ct_show_paging">
	<span style="color: #888;">Tổng số:</span>
	<span style="color: #444;">(<?php echo $this->pagination->total_rows; ?>)</span>
	<?php echo $this->pagination->create_links(); ?>
</div>		

<script type="text/javascript">
	<?php
		if (isset($success_vl)) {
			echo "alert('Xóa thành công !')";
		} 
	?>
</script>

							
				